<?php
	class chudebs
	{
		public $MaChuDe = 0;
		public $TenChuDe = "";
		
		public function Add()
		{
			$db = new chudedb();
			return $db->Add($this->TenChuDe);
		}
		
		public function Delete()
		{
			$db = new chudedb();
			return $db->Delete($this->MaChuDe);
		}
		
		public function Update()
		{
			$db = new chudedb();
			return $db->Update($this->MaChuDe, $this->TenChuDe);
		}
		
		public function GetList()
		{
			$db = new chudedb();
			return $db->GetList($this->MaChuDe, $this->TenChuDe);
		}
	}
?>